package com.yzy.controller;

/**
 * @author yangzhenyu
 * @version 1.0
 * @description:
 * @date 2022/6/2 19:07
 */
public class Test1 {

    public static void main(String[] args) {
        String string = "-0.86";
        String regex = "^\\+?([0-9]+\\.\\d{2})$";
        System.out.println(string.matches(regex));
    }
}
